#ifndef _UART_MSG_QUEUE_H
#define _UART_MSG_QUEUE_H

#include "global_val.h"
#include <stdlib.h>

typedef struct UART_QUEUE{
	uartmsg uart_msg;
	struct UART_QUEUE *next;
}UART_MSG_Queue_Node;

typedef struct{
	UART_MSG_Queue_Node *Queue_Head;//头部
	UART_MSG_Queue_Node *Queue_Trial;//尾部
}UART_MSG_Queue_Header;

UART_MSG_Queue_Header *UART_MSG_Queue_Init(void);
void UART_MSG_Queue_Enqueue(UART_MSG_Queue_Header *q, uartmsg msg);
UART_MSG_Queue_Node *UART_MSG_Queue_Dequeue(UART_MSG_Queue_Header *q);

#endif
